package com.szrt.java.day20170109.demo07;

public class Student {

	private String name;
	private String phoneNum;
	private int age;
	
	public Student() {
		
	}
	public Student(String name, String phoneNum, int age) {
		this.name = name;
		this.phoneNum = phoneNum;
		this.age = age;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getPhoneNum() {
		return phoneNum;
	}
	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}
	
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
	@Override
	public String toString() {
		//return "[name=" + name + ", phoneNum=" + phoneNum + ", age=" + age + "]";
		return  "age=" + age + " phoneNum=" + phoneNum;
	}
	
	
	
}
